package com.harmonyos.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 *
 * @TableName tb_tz
 */
@TableName(value ="tb_tz")
@Data
public class TbTz implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    /**
     *
     */

    private Integer id;
    private String tztitle;
    private String tzcontent;
    private byte[] tzimg;
    private String byuser;
    private String bytime;
    private String dizan;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbTz tbTz = (TbTz) o;
        return Objects.equals(id, tbTz.id) &&
                Objects.equals(tztitle, tbTz.tztitle) &&
                Objects.equals(tzcontent, tbTz.tzcontent) &&
                Objects.equals(tzimg, tbTz.tzimg) &&
                Objects.equals(byuser, tbTz.byuser) &&
                Objects.equals(bytime, tbTz.bytime) &&
                Objects.equals(dizan, tbTz.dizan);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, tztitle, tzcontent, tzimg, byuser, bytime, dizan);
    }

    @Override
    public String toString() {
        return "TbTz{" +
                "id=" + id +
                ", tztile='" + tztitle + '\'' +
                ", tzcontent='" + tzcontent + '\'' +
                ", tzimg='" + tzimg + '\'' +
                ", byuser='" + byuser + '\'' +
                ", bytime='" + bytime + '\'' +
                ", dizhan='" + dizan + '\'' +
                '}';
    }
}
